<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Creo</title>
<script src="http://code.jquery.com/jquery-latest.pack.js"></script> 
<script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.core.js"></script> 
<script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.highlight.js"></script> 
<script src="code.js"></script> 
<script src="error-handling.js"></script> 

<script type='text/javascript'>
	

 
	  
	  function doAjax(){
		  	alert("Doing AJAX");
		  	
		  	$.ajax({
		  	    url: 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D%22http://rss.news.yahoo.com/rss/topstories%22&format=json&debug=true',
		  	    type: 'GET',
		  	    success: function(res) {
		  	        var headline = $(res.query.results.item[0].title);
		  	        alert(headline);
		  	        alert("?");
		  	    }
		  	});	    
	  }
</script>


</head>
<body>
	<center>
	<h1>Kreo</h1>
	<h2>Talk to me.</h2>
	<form name="kreo">
	<input type="text" name="stdin" size="100">
	
	<input type="submit" value="submit" onclick="doAjax()">
	
	</form>
	</center>
	<!-- search api's from yahoo/google -->
	<!-- playing videos from youtube -->
	<!-- search api's from yahoo/google -->
	<!-- playing videos from youtube -->
	
	<!--  Search - will search for stuff<br>
	Play - music video<br>
	Go to a page<br>
	Post<br>
	-->
	  
	
</body>
</html>